#include "stdafx.h"
#include "LBCLuaPlugin_ZAManagerImpl.h"

#include "string"
#include "LuaPlusHelper.h"
#include "LuaZAManager.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

I_LBCLuaPlugin::~I_LBCLuaPlugin() {}

LBCLuaPlugin_ZAManagerImpl::LBCLuaPlugin_ZAManagerImpl()
{
}

LBCLuaPlugin_ZAManagerImpl::~LBCLuaPlugin_ZAManagerImpl()
{
}

void LBCLuaPlugin_ZAManagerImpl::Release()
{
	FreeInstance(this);
}

BOOL LBCLuaPlugin_ZAManagerImpl::Init()
{
	return TRUE;
}

BOOL LBCLuaPlugin_ZAManagerImpl::Register( LuaPlus::LuaState* pState )
{
	pState->GetGlobals().RegisterDirect("UIShowConfig", LuaUIShowConfig);
	return TRUE;
}

void LBCLuaPlugin_ZAManagerImpl::UnRegister( LuaPlus::LuaState* pState )
{
	
}

LBCLuaPlugin_ZAManagerImpl* LBCLuaPlugin_ZAManagerImpl::CreateInstance()
{
	return new LBCLuaPlugin_ZAManagerImpl;
}

void LBCLuaPlugin_ZAManagerImpl::FreeInstance( LBCLuaPlugin_ZAManagerImpl* pInstance )
{
	delete pInstance;
}